package com.colin.aiyi.dao.ImpxUtils3_de;

import com.colin.aiyi.app.Constant;
import com.colin.aiyi.entity.CommentList;
import com.colin.aiyi.presenter.Interface.Callback;

import org.xutils.http.RequestParams;
import org.xutils.x;

/**
 * Created by hl on 2017/6/1.
 */
@Deprecated
public class ImpComment extends AbsServicexUtils{
    @Override
    public void getTById(Callback callback, String id) {
        super.getTById(callback, id);
        RequestParams params=new RequestParams(Constant.SAY_commentList);
        params.addBodyParameter("sayId",id);
        x.http().get(params,this);
    }
    @Override
    public void onSuccess(String result) {
        CommentList  sayDetail=gson.fromJson(result,CommentList.class);
        callback.onSuccess(sayDetail);
    }
}
